Working With Android Clock Controls

Applies to TestComplete 15.68, last modified on October 16, 2024

Clock controls are used to show time. A user can touch them. TestComplete provides extended support for Android clock controls.

TestComplete analyzes the control class names and automatically creates wrapper Android Clock test objects for clock controls. These objects contain specific methods and properties for simulating user actions on clocks and for retrieving their data.

Supported clock classes are listed in the project’s Object Mapping options. You can extend this list, for example, add the class name of a custom clock control used in your tested application, and thus enable the recording and scripting support for this control. For more information, see Object Mapping.

Note: The described support is available only if the tested Android application is Open, that is, if it was prepared for TestComplete (see Preparing Android Applications (Legacy)).

The topics in this section provide detailed information about working with clock controls in TestComplete and contain script samples that illustrate the explanation.

In This Section

Touching Clock Controls

Describes how to select and clear toggle buttons.

Getting Clock Control's Time

Explains how to obtain the text of a toggle button.

Getting Clock Control's Format

Explains how to obtain the format of the clock(for DigitalClock and TextClock).

Related Topics of Interest

Testing Android Open Applications (Legacy)

Explains the most common approaches for working with Android Open applications.

Simulating Gestures (Multi-Touch Events) (Legacy)

Contains information on how to simulate multitouch actions in your scripts.

Simulating User Actions Over Android Devices (Legacy)

Explains the most common approaches for simulating user actions over Android applications’ controls.

See Also

Android Clock Support
Object-Specific Tasks
Supported Controls
Object Mapping

Highlight search results